package com.vito.oa.act.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.vito.act.model.ActExBussModel;
import com.vito.act.model.ActExTableColsModel;
import com.vito.base.model.MyHashMap;
import com.vito.oa.act.extend.model.OaActExBussModel;
import com.vito.oa.act.model.ProcessCopyLogModel;

public interface OaActProcessMapper {
	/**
	 * 系统流程查询
	 * @param process
	 * @return
	 */
	public List<MyHashMap<String, String>> querySysProgressByPage(OaActExBussModel process);
	public int querySysProgressCount(OaActExBussModel process);
	/**
	 * 查询流程基本信息
	 * @param businessId
	 * @return
	 */
	public List<MyHashMap<String,String>> querySysProcessBaseInfo(String businessId);
	/**
	 * 查询流程所有节点名称
	 * @param precessKey
	 * @return
	 */
	public List<String> queryNodesByProcessKey(String precessKey);
	/**
	 * 查询流程表单字段信息
	 * @param tableKey
	 * @return
	 */
	public List<ActExTableColsModel> querySysProcessTableCols(String tableKey);
	/**
	 * 保存流程拷贝记录信息
	 * @param copyModel
	 * @return
	 */
	public int saveProcessImportLog(ProcessCopyLogModel copyModel);
	public List<Map<String,String>> queryDataBySql(Map<String,String> map);
	/**
	 * 判断预制流程是否被到导入过
	 * @param businessId
	 * @param deptId
	 * @return
	 */
	public int queryCopyLog(String businessId,String deptId);
	/**
	 * 判断该流程是否为导入的模板
	 * @param businessId
	 * @return
	 */
	public ProcessCopyLogModel queryImportLog(String businessId);
	public int deleteImportLog(String id);
	/**
	 * 根据用户流程key查询对应模板流程key
	 * @param processKey
	 * @return
	 */
	public String queryOriginalProcessKey(@Param("processKey")String processKey);
	
}
